System and method for efficient CABAC clock

ABSTRACT

A system and method that process data in a circuitry utilizing two clocks. The two clocks may be an offset version of one another. Utilizing two clocks to processes the data may consume fewer clock cycles than using only one clock. The circuitry may comprise registers and a memory, wherein one register may receive a location of information in the memory, which may then be read from the received location. The one register may utilize a first of the two clocks, and the reading from the memory may utilize the second of the two clocks. The circuitry may comprise a portion of a CABAC decoder.

RELATED APPLICATIONS

This patent application makes reference to, claims priority to and claims benefit from U.S. Provisional Patent Application Ser. No. 60/573,314, entitled “System and Method for Efficient CABAC Clock,” filed on May 21, 2004, the complete subject matter of which is hereby incorporated herein by reference, in its entirety.

FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[Not Applicable]

MICROFICHE/COPYRIGHT REFERENCE

[Not Applicable]

BACKGROUND OF THE INVENTION

A typical Context Adaptive binary arithmetic coding (CABAC) decoder reads and updates state information for each decoded bit. The state information is often stored in a memory unit. In a data sequence, for each decoded bit, state information is read from the memory, an arithmetic operation is performed, and updated state information is written back to the memory. In a synchronous system, these operations are typically allocated to multiple clock cycles, forming a pipeline, if the entire sequence cannot be completed in one clock cycle.

Each of the needed operations takes a different amount of time to complete. Therefore, the clock rate is limited by the slowest stage of the pipeline. In other stages there will typically be slack time to the extent that the full cycle time is not needed to complete the operation(s) in that stage. As a result, the total time to decode one bit, which is determined by the number of pipeline stages times the clock cycles time, may be significantly longer than the sum of the times needed to complete each individual operation.

Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with some aspects of the present invention as set forth in the remainder of the present application with reference to the drawings.

BRIEF SUMMARY OF THE INVENTION

Aspects of the present invention may be seen in a system and method that processes data in a circuitry utilizing two clocks. The method may comprise utilizing a first clock to run a first portion of processes associated with the circuitry and utilizing a second clock to run a second portion of the processes associated with the circuitry. Running the first and second portions of the processes utilizing the first clock and the second clock may consume fewer clock cycles than running the first and second portions of the processes using only one clock. In an embodiment of the present invention, the second clock may be an offset version of the first clock.

In an embodiment of the present invention, the data may comprise CABAC encoded data and the circuitry may comprise at least a portion of a CABAC decoder.

In an embodiment of the present invention, the first portion of the processes may comprise receiving a location of information to be read from a memory associated with the circuitry. The second portion of the processes may comprise reading the information from the received location in the memory.

The system may comprise at least one processor capable of performing the method that processes data in a circuitry utilizing two clocks. In an embodiment of the present invention, the at least one processor may comprise hardware module, software modules, or a combination thereof. In another embodiment of the present invention, the at least one processor may comprise a microprocessor.

These and other features and advantages of the present invention may be appreciated from a review of the following detailed description of the present invention, along with the accompanying figures in which like reference numerals refer to like parts throughout.

BRIEF DESCRIPTION OF SEVERAL VIEWS OF THE DRAWINGS

FIG. 1A illustrates a block diagram of an exemplary high level CABAC pipeline circuit, in accordance with an embodiment of the present invention.

FIG. 1B illustrates a block diagram of an exemplary CABAC pipeline circuit, in accordance with an embodiment of the present invention.

FIG. 2 illustrates a timing diagram of exemplary first and second clocks, in accordance with an embodiment of the present invention.

FIG. 3 illustrates a flow diagram of an exemplary method utilizing two clocks in a CABAC pipeline circuit, in accordance with an embodiment of the present invention.

FIG. 4A illustrates an exemplary block diagram of a CABAC decoder, in accordance with an embodiment of the present invention.

FIG. 4B illustrates another exemplary block diagram of a CABAC decoder, in accordance with an embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

Aspects of the present invention generally relate to a method and system for implementing an efficient clock. More specifically, the present invention relates to a system in which a clock is used to read data from and write data to memory in an efficient manner. Although the following discussion relates to CABAC decoding, it should be understood that the present invention may be used in other systems that utilize clocks in reading and writing data from and to memory.

FIG. 1A illustrates a block diagram of an exemplary high level CABAC pipeline circuit, in accordance with an embodiment of the present invention. The CABAC context identifier register 100 may receive an address indicating where a requested context may be located. The received context address may then be used to retrieve the corresponding context from the context RAM 102. The retrieved context may then be used in the arithmetic decoder 106. If the received context address is the same as the previous one, the context may not need to be retrieved from the RAM 102, since it may be still in the arithmetic decoder 106. In such a case, the RAM 102 may be bypassed via a path 104. The decoded arithmetic context may then be written back to the RAM 102.

One clock 108 may be utilized with a portion of the circuit such as, for example, the context identifier register 100 in receiving the context address, and some functions associated with the RAM 102. For example, writing of the decoded context may utilize the clock 108. Another clock 110 may be utilized in another portion of the circuit such as, for example, other functions associated with the RAM 102 such as, retrieving of a context based on the received context address. The clock 110 may be an offset version of the clock 108. The offset between the two clocks may be an amount of time enough to ensure that a whole clock cycle is not needed between receiving a context address and reading the address from the RAM 102.

FIG. 1B illustrates a block diagram of an exemplary CABAC pipeline circuit, in accordance with an embodiment of the present invention. The state update section of a CABAC decoder may receive a context identifier 101 associated with a decoded bit, the context identifier 101 may be an address indicating where a requested context may be located. The address may be stored in a read address register 103. The received context address may then be used to retrieve the corresponding context from the context RAM 109. The write address register 105 may contain the address of the context written in the previous cycle. A comparator 107 may compare the contents of the read address register 103 and the write address register 105. When the read address 103 and the write address 105 are the same, the bypass 111 may be used instead of the output 113 of the RAM 109, since the context to be read is the same one as was written in the previous cycle. The retrieved context 115 may then be used in the arithmetic decoder 117.

In an embodiment of the present invention, the read address register 103, the write address register 105, and the write clock terminal of the context RAM 109 may run on a first clock 119. The read clock terminal of the context RAM 109 may be connected to a second clock 121. The second clock 121 may be an offset version of the first clock 119. The read address register 103 may use a first clock cycle of the first clock 119 to receive the address 101 of the context. Then during the second clock cycle, the context RAM 109 may be accessed to retrieve the context state 113. Also during the second cycle, the arithmetic decoder 117 may compute a decoded bit 123 and updated state 125. During a third clock cycle the updated state 125 may be written back to the context RAM 109 via a write data register 127.

FIG. 2 illustrates a timing diagram of exemplary first and second clocks, in accordance with an embodiment of the present invention. The timing diagram 201 may correspond to a first clock such as, for example, the first clock 119 of FIG. 1B, and the timing diagram 203 may correspond to a second clock such as, for example, the second clock 121.

In an embodiment of the present invention, the time difference between the rising edge 205 of the first clock cycle and the next rising edge 207 of the second clock cycle may be an amount of time T₁. During the amount of time T₁ the read address may be transferred from the read address register 103 to the read address input of the context RAM 109. The amount of time T₂ from the rising edge 207 of the second clock to the next rising edge 209 of the first clock may be an amount of time longer than one clock cycle, and may be long enough for the context to be retrieved from the context RAM 109 and for the arithmetic decoder 117 to complete its operation during the same clock cycle.

FIG. 3 illustrates a flow diagram of an exemplary method utilizing two clocks in a CABAC pipeline circuit, in accordance with an embodiment of the present invention. The method may start at a starting block 301, and at a next block 303 a context identifier may be received from a data stream. The received identifier may then be compared to the last received identifier at a next block 305. If the received identifier is the same as the previous one, the previous context may be retrieved at a block 309 and used to arithmetically decode the context at a block 311. The decoded data may then be written to a RAM at a next block 313. Then at a next block 315 the next context identifier for decoding may be selected from the data stream and the process begins again at a block 303.

If the received identifier is not the same as the previous one, the received identifier may be used to retrieve the associated context from the RAM at a block 307. The context may then be used to arithmetically decode the context at a block 311. The decoded data may then be written to a RAM at a next block 313. Then at a next block 315 the next context for decoding may be selected from the data stream and the process begins again at a block 303.

In an embodiment of the present invention, the method of the flow diagram of FIG. 3 may be performed utilizing a circuit such as, for example, the CABAC pipeline circuit of FIG. 1B. The pipeline circuit may be a portion of a system such as, for example, a video decoder where the incoming encoded video stream may be video data encoded utilizing coding schemes such as, for example, CABAC.

FIG. 4A illustrates an exemplary block diagram of a CABAC decoder, in accordance with an embodiment of the present invention. The CABAC decoder 401 may comprise a processor 403. The processor 403 may comprise hardware modules, software modules, or a combination thereof. In an embodiment of the present invention, the processor 403 may comprise a microprocessor. The processor 403 may utilize a clock 405, wherein different modules in the processor 403 may utilize the clock 405 and offset versions of the clock 405.

FIG. 4B illustrates another exemplary block diagram of a CABAC decoder, in accordance with an embodiment of the present invention. The CABAC decoder 451 may comprise two or more processors 453. Each of the processors 453 may comprise hardware modules, software modules, or a combination thereof. In an embodiment of the present invention, each processor 453 may comprise a microprocessor. Each of the processors 453 may utilize one of n clocks 455 with the different modules in the processors 453. The clock 455 may be the same clock or offset versions of one clock.

The modules associated with FIG. 4A and FIG. 4B may comprise modules generally capable of being configured to carry out the processes and activities of a CABAC pipeline circuit as described hereinabove in FIG. 1A and FIG. 1B, and the method described by FIG. 3.

The present invention may also be embedded in a computer program product comprising all of the features enabling implementation of the methods described herein which when loaded in a computer system is adapted to carry out these methods. Computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; and b) reproduction in a different material form.

While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims. 

1. A method that processes data in a circuitry, the method comprising: utilizing a first clock to run a first portion of processes associated with the circuitry; utilizing a second clock to run a second portion of the processes associated with the circuitry; wherein running the first and second portions of the processes utilizing the first clock and the second clock consumes fewer clock cycles than running the first and second portions of the processes using only one clock; and wherein the data comprises CABAC encoded data and the circuitry comprises at least a portion of a CABAC decoder.
 2. The method according to claim 1 wherein the second clock is an offset version of the first clock.
 3. The method according to claim 1 wherein the first portion of the processes comprises receiving a location of information to be read from a memory associated with the circuitry.
 4. The method according to claim 3 wherein the second portion of the processes comprises reading the information from the received location in the memory.
 5. A method that processes data in a circuitry, the method comprising: utilizing a first clock to run a first portion of processes associated with the circuitry, wherein the first portion of the processes comprises receiving a location of information to be read from a memory associated with the circuitry; utilizing a second clock to run a second portion of the processes associated with the circuitry, wherein the second portion of the processes comprises reading the information from the received location in the memory; and wherein running the first and second portions of the processes utilizing the first clock and the second clock consumes fewer clock cycles than running the first and second portions of the processes using only one clock.
 6. The method according to claim 5 wherein the second clock is an offset version of the first clock.
 7. The method according to claim 5 wherein the data comprises CABAC encoded data.
 8. The method according to claim 7 wherein the circuitry comprises at least a portion of a CABAC decoder.
 9. A system that processes data in a circuitry, the system comprising: at least one processor capable of utilizing a first clock to run a first portion of processes associated with the circuitry; the at least one processor capable of utilizing a second clock to run a second portion of the processes associated with the circuitry; wherein running the first and second portions of the processes utilizing the first clock and the second clock consumes fewer clock cycles than running the first and second portions of the processes using only one clock; and wherein the data comprises CABAC encoded data and the circuitry comprises at least a portion of a CABAC decoder.
 10. The system according to claim 9 wherein the second clock is an offset version of the first clock.
 11. The system according to claim 9 wherein the first portion of the processes comprises receiving a location of information to be read from a memory associated with the circuitry.
 12. The system according to claim 11 wherein the second portion of the processes comprises reading the information from the received location in the memory.
 13. The system according to claim 11 wherein the at least one processor comprises hardware modules.
 14. The system according to claim 11 wherein the at least one processor comprises software modules.
 15. The system according to claim 11 wherein the at least one processor comprises a combination of hardware modules and software modules.
 16. The system according to claim 11 wherein the at least one processor comprises a microprocessor.
 17. A system that processes data in a circuitry, the system comprising: at least one processor capable of utilizing a first clock to run a first portion of processes associated with the circuitry, wherein the first portion of the processes comprises receiving a location of information to be read from a memory associated with the circuitry; the at least one processor capable of utilizing a second clock to run a second portion of the processes associated with the circuitry, wherein the second portion of the processes comprises reading the information from the received location in the memory; and wherein running the first and second portions of the processes utilizing the first clock and the second clock consumes fewer clock cycles than running the first and second portions of the processes using only one clock.
 18. The system according to claim 17 wherein the second clock is an offset version of the first clock.
 19. The system according to claim 17 wherein the data comprises CABAC encoded data.
 20. The system according to claim 19 wherein the circuitry comprises at least a portion of a CABAC decoder.
 21. The system according to claim 17 wherein the at least one processor comprises hardware modules.
 22. The system according to claim 17 wherein the at least one processor comprises software modules.
 23. The system according to claim 17 wherein the at least one processor comprises a combination of hardware modules and software modules.
 24. The system according to claim 17 wherein the at least one processor comprises a microprocessor.
 25. A circuitry that processes data, the circuitry comprising: a first set of components that utilize a first clock to run a first portion of processes; a second set of components that utilize a second clock to run a second portion of the processes; wherein utilizing the first clock and the second clock consumes fewer clock cycles than utilizing only one clock to run the first and the second portions of the processes; and wherein the data comprises CABAC encoded data and the circuitry comprises at least a portion of a CABAC decoder.
 26. The circuitry according to claim 25 wherein the second clock is an offset version of the first clock.
 27. The circuitry according to claim 25 further comprising a memory.
 28. The circuitry according to claim 27 wherein the first set of components comprises a register that receives and stores information to be read from the memory.
 29. The circuitry according to claim 28 wherein the second set of components comprises the memory.
 30. A circuitry that processes data, the circuitry comprising: a memory; a first set of components that utilize a first clock to run a first portion of processes, wherein the first set of components comprises a register that receives and stores information to be read from the memory; a second set of components that utilize a second clock to run a second portion of the processes, wherein the second set of components comprises the memory; and wherein utilizing the first clock and the second clock consumes fewer clock cycles than utilizing only one clock to run the first and the second portions of the processes.
 31. The circuitry according to claim 30 wherein the second clock is an offset version of the first clock.
 32. The circuitry according to claim 30 wherein the data comprises CABAC encoded data.
 33. The circuitry according to claim 32 wherein and the circuitry comprises at least a portion of a CABAC decoder. 